//
//  LKSportMainViewController.m
//  SportDemo
//
//  Created by Lukj on 2017/4/21.
//  Copyright © 2017年 lukj. All rights reserved.
//

#import "LKSportMainViewController.h"
#import "LKSportControlViewController.h"
#import "LKSportTrack.h"
@interface LKSportMainViewController ()

@end

@implementation LKSportMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


//  点击运动按钮
- (IBAction)clickSportBtn:(UIButton *)sender {
    //  创建轨迹模型
    LKSportTrack *track = [[LKSportTrack alloc] initWithSportTrackType:sender.tag andSportState:SportStateContinue];
    
    LKSportControlViewController *trackVC = [[LKSportControlViewController alloc] init];
    trackVC.track = track;
    [self presentViewController:trackVC animated:YES completion:nil];
    
}


@end
